<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../vue.js"></script>
<style>
  #app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
  }
</style>
</head>

<body>
  <div id="app">
    <h1 v-text="msg"></h1>
    <h1 v-text="msg">我会被覆盖?</h1>
    <hr>
    <h1 v-html="msg"></h1>
    <h1 v-html="msg">我会被覆盖?</h1>
    <hr>
    <h1 v-text="mark"></h1>
    <h1 v-html="mark">我会被覆盖?</h1>
  </div>
  <script>
    Vue.config.productionTip = false;
    //实例化Vue
    const vm = new Vue({
      el: "#app",
      data() {
        return {
          msg:"hello",
          mark:"<em>我倾斜</em>"
        }
      }
    })
  </script>
</body>

</html>